Integrand size = 26, antiderivative size = 176 \[ \int \frac {\sqrt {a+b x^2} \left (A+B x^2\right )}{\sqrt {e x}} \, dx=\frac {2 (7 A b-a B) \sqrt {e x} \sqrt {a+b x^2}}{21 b e}+\frac {2 B \sqrt {e x} \left (a+b x^2\right )^{3/2}}{7 b e}+\frac {2 a^{3/4} (7 A b-a B) \left (\sqrt {a}+\sqrt {b} x\right ) \sqrt {\frac {a+b x^2}{\left (\sqrt {a}+\sqrt {b} x\right )^2}} \operatorname {EllipticF}\left (2 \arctan \left (\frac {\sqrt [4]{b} \sqrt {e x}}{\sqrt [4]{a} \sqrt {e}}\right ),\frac {1}{2}\right )}{21 b^{5/4} \sqrt {e} \sqrt {a+b x^2}} \]
2/7*B*(b*x^2+a)^(3/2)*(e*x)^(1/2)/b/e+2/21*(7*A*b-B*a)*(e*x)^(1/2)*(b*x^2+ a)^(1/2)/b/e+2/21*a^(3/4)*(7*A*b-B*a)*(cos(2*arctan(b^(1/4)*(e*x)^(1/2)/a^ (1/4)/e^(1/2)))^2)^(1/2)/cos(2*arctan(b^(1/4)*(e*x)^(1/2)/a^(1/4)/e^(1/2)) )*EllipticF(sin(2*arctan(b^(1/4)*(e*x)^(1/2)/a^(1/4)/e^(1/2))),1/2*2^(1/2) )*(a^(1/2)+x*b^(1/2))*((b*x^2+a)/(a^(1/2)+x*b^(1/2))^2)^(1/2)/b^(5/4)/e^(1 /2)/(b*x^2+a)^(1/2)
Result contains higher order function than in optimal. Order 5 vs. order 4 in optimal.
Time = 10.04 (sec) , antiderivative size = 93, normalized size of antiderivative = 0.53 \[ \int \frac {\sqrt {a+b x^2} \left (A+B x^2\right )}{\sqrt {e x}} \, dx=\frac {2 x \sqrt {a+b x^2} \left (B \left (a+b x^2\right ) \sqrt {1+\frac {b x^2}{a}}+(7 A b-a B) \operatorname {Hypergeometric2F1}\left (-\frac {1}{2},\frac {1}{4},\frac {5}{4},-\frac {b x^2}{a}\right )\right )}{7 b \sqrt {e x} \sqrt {1+\frac {b x^2}{a}}} \]
(2*x*Sqrt[a + b*x^2]*(B*(a + b*x^2)*Sqrt[1 + (b*x^2)/a] + (7*A*b - a*B)*Hy pergeometric2F1[-1/2, 1/4, 5/4, -((b*x^2)/a)]))/(7*b*Sqrt[e*x]*Sqrt[1 + (b *x^2)/a])
Time = 0.25 (sec) , antiderivative size = 185, normalized size of antiderivative = 1.05, number of steps used = 5, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {363, 248, 266, 761}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {\sqrt {a+b x^2} \left (A+B x^2\right )}{\sqrt {e x}} \, dx\) |
\(\Big \downarrow \) 363 |
\(\displaystyle \frac {(7 A b-a B) \int \frac {\sqrt {b x^2+a}}{\sqrt {e x}}dx}{7 b}+\frac {2 B \sqrt {e x} \left (a+b x^2\right )^{3/2}}{7 b e}\) |
\(\Big \downarrow \) 248 |
\(\displaystyle \frac {(7 A b-a B) \left (\frac {2}{3} a \int \frac {1}{\sqrt {e x} \sqrt {b x^2+a}}dx+\frac {2 \sqrt {e x} \sqrt {a+b x^2}}{3 e}\right )}{7 b}+\frac {2 B \sqrt {e x} \left (a+b x^2\right )^{3/2}}{7 b e}\) |
\(\Big \downarrow \) 266 |
\(\displaystyle \frac {(7 A b-a B) \left (\frac {4 a \int \frac {1}{\sqrt {b x^2+a}}d\sqrt {e x}}{3 e}+\frac {2 \sqrt {e x} \sqrt {a+b x^2}}{3 e}\right )}{7 b}+\frac {2 B \sqrt {e x} \left (a+b x^2\right )^{3/2}}{7 b e}\) |
\(\Big \downarrow \) 761 |
\(\displaystyle \frac {(7 A b-a B) \left (\frac {2 a^{3/4} \left (\sqrt {a} e+\sqrt {b} e x\right ) \sqrt {\frac {a e^2+b e^2 x^2}{\left (\sqrt {a} e+\sqrt {b} e x\right )^2}} \operatorname {EllipticF}\left (2 \arctan \left (\frac {\sqrt [4]{b} \sqrt {e x}}{\sqrt [4]{a} \sqrt {e}}\right ),\frac {1}{2}\right )}{3 \sqrt [4]{b} e^{3/2} \sqrt {a+b x^2}}+\frac {2 \sqrt {e x} \sqrt {a+b x^2}}{3 e}\right )}{7 b}+\frac {2 B \sqrt {e x} \left (a+b x^2\right )^{3/2}}{7 b e}\) |
(2*B*Sqrt[e*x]*(a + b*x^2)^(3/2))/(7*b*e) + ((7*A*b - a*B)*((2*Sqrt[e*x]*S qrt[a + b*x^2])/(3*e) + (2*a^(3/4)*(Sqrt[a]*e + Sqrt[b]*e*x)*Sqrt[(a*e^2 + b*e^2*x^2)/(Sqrt[a]*e + Sqrt[b]*e*x)^2]*EllipticF[2*ArcTan[(b^(1/4)*Sqrt[ e*x])/(a^(1/4)*Sqrt[e])], 1/2])/(3*b^(1/4)*e^(3/2)*Sqrt[a + b*x^2])))/(7*b )
3.8.87.3.1 Defintions of rubi rules used
Int[((c_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^2)^(p_), x_Symbol] :> Simp[(c*x)^ (m + 1)*((a + b*x^2)^p/(c*(m + 2*p + 1))), x] + Simp[2*a*(p/(m + 2*p + 1)) Int[(c*x)^m*(a + b*x^2)^(p - 1), x], x] /; FreeQ[{a, b, c, m}, x] && GtQ[ p, 0] && NeQ[m + 2*p + 1, 0] && IntBinomialQ[a, b, c, 2, m, p, x]
Int[((c_.)*(x_))^(m_)*((a_) + (b_.)*(x_)^2)^(p_), x_Symbol] :> With[{k = De nominator[m]}, Simp[k/c Subst[Int[x^(k*(m + 1) - 1)*(a + b*(x^(2*k)/c^2)) ^p, x], x, (c*x)^(1/k)], x]] /; FreeQ[{a, b, c, p}, x] && FractionQ[m] && I ntBinomialQ[a, b, c, 2, m, p, x]
Int[((e_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^2)^(p_.)*((c_) + (d_.)*(x_)^2), x _Symbol] :> Simp[d*(e*x)^(m + 1)*((a + b*x^2)^(p + 1)/(b*e*(m + 2*p + 3))), x] - Simp[(a*d*(m + 1) - b*c*(m + 2*p + 3))/(b*(m + 2*p + 3)) Int[(e*x)^ m*(a + b*x^2)^p, x], x] /; FreeQ[{a, b, c, d, e, m, p}, x] && NeQ[b*c - a*d , 0] && NeQ[m + 2*p + 3, 0]
Int[1/Sqrt[(a_) + (b_.)*(x_)^4], x_Symbol] :> With[{q = Rt[b/a, 4]}, Simp[( 1 + q^2*x^2)*(Sqrt[(a + b*x^4)/(a*(1 + q^2*x^2)^2)]/(2*q*Sqrt[a + b*x^4]))* EllipticF[2*ArcTan[q*x], 1/2], x]] /; FreeQ[{a, b}, x] && PosQ[b/a]
Time = 3.01 (sec) , antiderivative size = 184, normalized size of antiderivative = 1.05
method | result | size |
risch | \(\frac {2 \left (3 b B \,x^{2}+7 A b +2 B a \right ) x \sqrt {b \,x^{2}+a}}{21 b \sqrt {e x}}+\frac {2 a \left (7 A b -B a \right ) \sqrt {-a b}\, \sqrt {\frac {\left (x +\frac {\sqrt {-a b}}{b}\right ) b}{\sqrt {-a b}}}\, \sqrt {-\frac {2 \left (x -\frac {\sqrt {-a b}}{b}\right ) b}{\sqrt {-a b}}}\, \sqrt {-\frac {x b}{\sqrt {-a b}}}\, F\left (\sqrt {\frac {\left (x +\frac {\sqrt {-a b}}{b}\right ) b}{\sqrt {-a b}}}, \frac {\sqrt {2}}{2}\right ) \sqrt {\left (b \,x^{2}+a \right ) e x}}{21 b^{2} \sqrt {b e \,x^{3}+a e x}\, \sqrt {e x}\, \sqrt {b \,x^{2}+a}}\) | \(184\) |
elliptic | \(\frac {\sqrt {\left (b \,x^{2}+a \right ) e x}\, \left (\frac {2 B \,x^{2} \sqrt {b e \,x^{3}+a e x}}{7 e}+\frac {2 \left (A b +\frac {2 B a}{7}\right ) \sqrt {b e \,x^{3}+a e x}}{3 b e}+\frac {\left (A a -\frac {a \left (A b +\frac {2 B a}{7}\right )}{3 b}\right ) \sqrt {-a b}\, \sqrt {\frac {\left (x +\frac {\sqrt {-a b}}{b}\right ) b}{\sqrt {-a b}}}\, \sqrt {-\frac {2 \left (x -\frac {\sqrt {-a b}}{b}\right ) b}{\sqrt {-a b}}}\, \sqrt {-\frac {x b}{\sqrt {-a b}}}\, F\left (\sqrt {\frac {\left (x +\frac {\sqrt {-a b}}{b}\right ) b}{\sqrt {-a b}}}, \frac {\sqrt {2}}{2}\right )}{b \sqrt {b e \,x^{3}+a e x}}\right )}{\sqrt {e x}\, \sqrt {b \,x^{2}+a}}\) | \(207\) |
default | \(\frac {\frac {2 A \sqrt {2}\, \sqrt {\frac {b x +\sqrt {-a b}}{\sqrt {-a b}}}\, \sqrt {\frac {-b x +\sqrt {-a b}}{\sqrt {-a b}}}\, \sqrt {-\frac {x b}{\sqrt {-a b}}}\, F\left (\sqrt {\frac {b x +\sqrt {-a b}}{\sqrt {-a b}}}, \frac {\sqrt {2}}{2}\right ) \sqrt {-a b}\, a b}{3}-\frac {2 B \sqrt {2}\, \sqrt {\frac {b x +\sqrt {-a b}}{\sqrt {-a b}}}\, \sqrt {\frac {-b x +\sqrt {-a b}}{\sqrt {-a b}}}\, \sqrt {-\frac {x b}{\sqrt {-a b}}}\, F\left (\sqrt {\frac {b x +\sqrt {-a b}}{\sqrt {-a b}}}, \frac {\sqrt {2}}{2}\right ) \sqrt {-a b}\, a^{2}}{21}+\frac {2 b^{3} B \,x^{5}}{7}+\frac {2 A \,b^{3} x^{3}}{3}+\frac {10 B a \,b^{2} x^{3}}{21}+\frac {2 a \,b^{2} A x}{3}+\frac {4 a^{2} b B x}{21}}{\sqrt {b \,x^{2}+a}\, \sqrt {e x}\, b^{2}}\) | \(246\) |
2/21*(3*B*b*x^2+7*A*b+2*B*a)*x*(b*x^2+a)^(1/2)/b/(e*x)^(1/2)+2/21*a*(7*A*b -B*a)/b^2*(-a*b)^(1/2)*((x+(-a*b)^(1/2)/b)/(-a*b)^(1/2)*b)^(1/2)*(-2*(x-(- a*b)^(1/2)/b)/(-a*b)^(1/2)*b)^(1/2)*(-x/(-a*b)^(1/2)*b)^(1/2)/(b*e*x^3+a*e *x)^(1/2)*EllipticF(((x+(-a*b)^(1/2)/b)/(-a*b)^(1/2)*b)^(1/2),1/2*2^(1/2)) *((b*x^2+a)*e*x)^(1/2)/(e*x)^(1/2)/(b*x^2+a)^(1/2)
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.08 (sec) , antiderivative size = 73, normalized size of antiderivative = 0.41 \[ \int \frac {\sqrt {a+b x^2} \left (A+B x^2\right )}{\sqrt {e x}} \, dx=-\frac {2 \, {\left (2 \, {\left (B a^{2} - 7 \, A a b\right )} \sqrt {b e} {\rm weierstrassPInverse}\left (-\frac {4 \, a}{b}, 0, x\right ) - {\left (3 \, B b^{2} x^{2} + 2 \, B a b + 7 \, A b^{2}\right )} \sqrt {b x^{2} + a} \sqrt {e x}\right )}}{21 \, b^{2} e} \]
-2/21*(2*(B*a^2 - 7*A*a*b)*sqrt(b*e)*weierstrassPInverse(-4*a/b, 0, x) - ( 3*B*b^2*x^2 + 2*B*a*b + 7*A*b^2)*sqrt(b*x^2 + a)*sqrt(e*x))/(b^2*e)
Result contains complex when optimal does not.
Time = 2.48 (sec) , antiderivative size = 97, normalized size of antiderivative = 0.55 \[ \int \frac {\sqrt {a+b x^2} \left (A+B x^2\right )}{\sqrt {e x}} \, dx=\frac {A \sqrt {a} \sqrt {x} \Gamma \left (\frac {1}{4}\right ) {{}_{2}F_{1}\left (\begin {matrix} - \frac {1}{2}, \frac {1}{4} \\ \frac {5}{4} \end {matrix}\middle | {\frac {b x^{2} e^{i \pi }}{a}} \right )}}{2 \sqrt {e} \Gamma \left (\frac {5}{4}\right )} + \frac {B \sqrt {a} x^{\frac {5}{2}} \Gamma \left (\frac {5}{4}\right ) {{}_{2}F_{1}\left (\begin {matrix} - \frac {1}{2}, \frac {5}{4} \\ \frac {9}{4} \end {matrix}\middle | {\frac {b x^{2} e^{i \pi }}{a}} \right )}}{2 \sqrt {e} \Gamma \left (\frac {9}{4}\right )} \]
A*sqrt(a)*sqrt(x)*gamma(1/4)*hyper((-1/2, 1/4), (5/4,), b*x**2*exp_polar(I *pi)/a)/(2*sqrt(e)*gamma(5/4)) + B*sqrt(a)*x**(5/2)*gamma(5/4)*hyper((-1/2 , 5/4), (9/4,), b*x**2*exp_polar(I*pi)/a)/(2*sqrt(e)*gamma(9/4))
\[ \int \frac {\sqrt {a+b x^2} \left (A+B x^2\right )}{\sqrt {e x}} \, dx=\int { \frac {{\left (B x^{2} + A\right )} \sqrt {b x^{2} + a}}{\sqrt {e x}} \,d x } \]
\[ \int \frac {\sqrt {a+b x^2} \left (A+B x^2\right )}{\sqrt {e x}} \, dx=\int { \frac {{\left (B x^{2} + A\right )} \sqrt {b x^{2} + a}}{\sqrt {e x}} \,d x } \]
Timed out. \[ \int \frac {\sqrt {a+b x^2} \left (A+B x^2\right )}{\sqrt {e x}} \, dx=\int \frac {\left (B\,x^2+A\right )\,\sqrt {b\,x^2+a}}{\sqrt {e\,x}} \,d x \]